<h2><?php echo Yii::t('views', 'Managing parameters'); ?></h2>
<?php
$this->widget('application.modules.admin.widgets.ParameterSubMenu', array (
	"items" => array (
		'create'
	)
));
?>

<table class="dataGrid">
  <thead>
  <tr>
    <th>Parameter name</th>
    <th>Parameter label</th>
    <th>Parameter type</th>
	<th>Actions</th>
  </tr>
  </thead>
  <tbody>
<?php foreach($models as $n=>$model): ?>
  <tr class="<?php echo $n%2?'even':'odd';?>">
    <td><?php echo CHtml::link($model->param_mnemonic,array('show','mnemonic'=>$model->param_mnemonic)); ?></td>
    <td><?php echo $model->param_label; ?></td>
    <td><?php echo $model->param_type; ?></td>
    <td>
      <?php echo CHtml::link(Yii::t('parameter', 'Update'),array('update','mnemonic'=>$model->param_mnemonic)); ?>
      <?php

echo CHtml::linkButton(Yii::t('parameter', 'Delete'), array (
	'submit' => '',
	'params' => array (
		'command' => 'delete',
		'mnemonic' => $model->param_mnemonic
	),
	'confirm' => Yii::t('views', "Are you sure to delete #{mnemonic}?", array (
		'{mnemonic}' => $model->param_mnemonic
	))
));
?>
	</td>
  </tr>
<?php endforeach; ?>
  </tbody>
</table>
<br/>
